public class IrHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COM_IR
option for infrared communication
|
static int |
COM_RS
option for rs232 communication
|
static int |
ERR_AUDIT_MASK
Error returned, general error on audit
|
static int |
ERR_AUDIT_MEMFULL
Error returned, failure on audit, not enough space
|
static int |
ERR_FILE_DEL_MASK
Error returned, general error deleting file
|
static int |
ERR_FILE_NONE
Error returned, file not found
|
static int |
ERR_FILE_READ_MASK
Error returned, general error reading file
|
static int |
ERR_FILE_WRITE
Error returned, failure writing file
|
static int |
ERR_FW_MASK
Error returned, general error on firmware update
|
static int |
ERR_FW_UPTODATE
Error returned, firmware already up to date
|
static int |
ERR_NOHEADSET
Error returned, Smart RFT (headset) unplugged
|
static int |
ERR_NOIRMODULE
Error returned, Smart RFT unplugged
|
static int |
ERR_OUTPUT
Error returned, unable to handle phone audio output
|
static int |
ERR_RX_DATA
Error returned, communication error with Smart RFT
|
static int |
ERR_RX_DATALEN
Error returned, communication error with Smart RFT
|
static int |
ERR_RX_FRAME
Error returned, communication error with Smart RFT
|
static int |
ERR_RX_SYSTEM
Error returned, communication error with Smart RFT
|
static int |
ERR_RX_TIMEOUT
Error returned, no answer from Smart RFT
|
static int |
ERR_SAMPLE_FREQ
Error returned, phone audio frequency not supported
|
static java.lang.String |
libVersion |
static java.lang.String |
MSG_AUDIT_INT
Message sent to notify audit progress
|
static java.lang.String |
MSG_BATTERY_INT
Message sent to notify Smart RFT battery status
|
static java.lang.String |
MSG_FILE_READ_INT
Message sent to notify progress reading file
|
static java.lang.String |
MSG_FILE_SIZE_INT
Message sent to notify file size
|
static java.lang.String |
MSG_MEMTOT_INT
Message sent to notify total memory of Smart RFT
|
static java.lang.String |
MSG_MEMUSED_INT
Message sent to notify used memory of Smart RFT
|
static java.lang.String |
MSG_NFILE_INT
Message sent to notify number of files stored on Smart RFT
|
static java.lang.String |
MSG_SN_STRING
Message sent to notify Smart RFT serial number
|
static java.lang.String |
MSG_VERSION_STRING
Message sent to notify Smart RFT firmware version
|
| Constructor and Description |
|---|
IrHandler(android.content.Context context,
android.os.Handler handler) |
| Modifier and Type | Method and Description |
|---|---|
int |
doDdcmp(int password,
int security,
int com,
java.io.File fName)
Performs an audit revealing with DDCMP protocol
|
int |
doDex(int com,
java.io.File fName)
Performs an audit revealing with DEX protocol
|
int |
doFwUpdate(java.io.File fName)
Updates firmware of Smart RFT
|
int |
doGetFile(java.io.File fName)
Retrieves data previously stored on Smart RFT
|
int |
GetBattery() |
int |
GetMemTot() |
int |
GetMemUsed() |
int |
GetNFile() |
java.lang.String |
GetSN() |
java.lang.String |
GetVersion() |
public static final java.lang.String libVersion
public static final int COM_IR
public static final int COM_RS
public static final java.lang.String MSG_VERSION_STRING
public static final java.lang.String MSG_SN_STRING
public static final java.lang.String MSG_BATTERY_INT
public static final java.lang.String MSG_NFILE_INT
public static final java.lang.String MSG_MEMUSED_INT
public static final java.lang.String MSG_MEMTOT_INT
public static final java.lang.String MSG_AUDIT_INT
public static final java.lang.String MSG_FILE_SIZE_INT
public static final java.lang.String MSG_FILE_READ_INT
public static final int ERR_SAMPLE_FREQ
public static final int ERR_NOHEADSET
public static final int ERR_OUTPUT
public static final int ERR_NOIRMODULE
public static final int ERR_RX_TIMEOUT
public static final int ERR_RX_DATA
public static final int ERR_RX_DATALEN
public static final int ERR_RX_SYSTEM
public static final int ERR_RX_FRAME
public static final int ERR_FILE_NONE
public static final int ERR_FILE_WRITE
public static final int ERR_AUDIT_MASK
public static final int ERR_AUDIT_MEMFULL
public static final int ERR_FILE_READ_MASK
public static final int ERR_FILE_DEL_MASK
public static final int ERR_FW_MASK
public static final int ERR_FW_UPTODATE
public IrHandler(android.content.Context context,
android.os.Handler handler)
context - context of activityhandler - handler to receive messagespublic int doDdcmp(int password,
int security,
int com,
java.io.File fName)
public int doDex(int com,
java.io.File fName)
public int doGetFile(java.io.File fName)
fName - file name to save datapublic int doFwUpdate(java.io.File fName)
fName - Firmware filepublic java.lang.String GetVersion()
public java.lang.String GetSN()
public int GetBattery()
public int GetNFile()
public int GetMemUsed()
public int GetMemTot()